<template>
  <div class="main">
    <!-- 导航按钮 -->
    <nav-btn v-show="navsBtn"></nav-btn>

    <!-- 路由视图 -->
    <router-view
      @getnavs-btn="getnavsBtn"
      @get-uid="getUid"
      :uid="uid"
    ></router-view>
  </div>
</template>

<script>
import navBtn from "./components/base/navBtn.vue";
export default {
  data() {
    return {
      // 导航按钮
      navsBtn: true,
      //用户ID
      uid: null,
    };
  },
  methods: {
    // 导航按钮
    getnavsBtn(obj) {
      this.navsBtn = obj;
    },
    //用户ID
    getUid(id) {
      this.uid = id;
    },
  },
  components: { navBtn },
};
</script>

<style lang="less">
</style>
